//**************************************************************************************
// TaskNote Generated Class File
//**************************************************************************************
//**** DO NOT CHANGE THIS FILE.  THE CONTENTS WILL BE OVERRIDEN ON NEXT MODEL SAVE. ****
//**************************************************************************************
using System;
using System.ComponentModel;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Validation;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
using DevExpress.Xpo;

namespace Liekhus.TimeTracker.Module
{
    [ImageName("BO_Unknown")]
    [CreatableItem(true)]
    [NavigationItem(true)]
    [DefaultListViewOptions()]
    [DefaultProperty("CreatedOn")]
    public partial class TaskNote : BaseObject
    {
        #region Constructor
        public TaskNote() : base()
        {
        }

        public TaskNote(Session session) : base(session)
        {
        }
        #endregion

        #region Properties
        private String m_comment;
        [Size(2500)]
        [RuleRequiredField("TaskNote_Comment_RuleRequiredField", DefaultContexts.Save, "Comment is required.")]
        public String Comment
        {
            get { return m_comment; }
            set { SetPropertyValue("Comment", ref m_comment, value); }
        }

        private DateTime m_createdOn;
        public DateTime CreatedOn
        {
            get { return m_createdOn; }
            set { SetPropertyValue("CreatedOn", ref m_createdOn, value); }
        }

        private DateTime m_modifiedOn;
        public DateTime ModifiedOn
        {
            get { return m_modifiedOn; }
            set { SetPropertyValue("ModifiedOn", ref m_modifiedOn, value); }
        }

        private DateTime m_deletedOn;
        public DateTime DeletedOn
        {
            get { return m_deletedOn; }
            set { SetPropertyValue("DeletedOn", ref m_deletedOn, value); }
        }

        private Task m_task;
        [Association("Liekhus.TimeTracker.TaskTaskNote")]
        public Task Task
        {
            get { return m_task; }
            set { SetPropertyValue("Task", ref m_task, value); }
        }

        #endregion
    }
}
